﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001231 RID: 4657
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartStarFightLevelScRsp : IMessage<StartStarFightLevelScRsp>, IMessage, IEquatable<StartStarFightLevelScRsp>, IDeepCloneable<StartStarFightLevelScRsp>, IBufferMessage
	{
		// Token: 0x17003B11 RID: 15121
		// (get) Token: 0x0600D0E2 RID: 53474 RVA: 0x00232FEF File Offset: 0x002311EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartStarFightLevelScRsp> Parser
		{
			get
			{
				return StartStarFightLevelScRsp._parser;
			}
		}

		// Token: 0x17003B12 RID: 15122
		// (get) Token: 0x0600D0E3 RID: 53475 RVA: 0x00232FF6 File Offset: 0x002311F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartStarFightLevelScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003B13 RID: 15123
		// (get) Token: 0x0600D0E4 RID: 53476 RVA: 0x00233008 File Offset: 0x00231208
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartStarFightLevelScRsp.Descriptor;
			}
		}

		// Token: 0x0600D0E5 RID: 53477 RVA: 0x0023300F File Offset: 0x0023120F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartStarFightLevelScRsp()
		{
		}

		// Token: 0x0600D0E6 RID: 53478 RVA: 0x00233018 File Offset: 0x00231218
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartStarFightLevelScRsp(StartStarFightLevelScRsp other) : this()
		{
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.fightStageId_ = other.fightStageId_;
			this.groupId_ = other.groupId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D0E7 RID: 53479 RVA: 0x0023307C File Offset: 0x0023127C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartStarFightLevelScRsp Clone()
		{
			return new StartStarFightLevelScRsp(this);
		}

		// Token: 0x17003B14 RID: 15124
		// (get) Token: 0x0600D0E8 RID: 53480 RVA: 0x00233084 File Offset: 0x00231284
		// (set) Token: 0x0600D0E9 RID: 53481 RVA: 0x0023308C File Offset: 0x0023128C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17003B15 RID: 15125
		// (get) Token: 0x0600D0EA RID: 53482 RVA: 0x00233095 File Offset: 0x00231295
		// (set) Token: 0x0600D0EB RID: 53483 RVA: 0x0023309D File Offset: 0x0023129D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FightStageId
		{
			get
			{
				return this.fightStageId_;
			}
			set
			{
				this.fightStageId_ = value;
			}
		}

		// Token: 0x17003B16 RID: 15126
		// (get) Token: 0x0600D0EC RID: 53484 RVA: 0x002330A6 File Offset: 0x002312A6
		// (set) Token: 0x0600D0ED RID: 53485 RVA: 0x002330AE File Offset: 0x002312AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x17003B17 RID: 15127
		// (get) Token: 0x0600D0EE RID: 53486 RVA: 0x002330B7 File Offset: 0x002312B7
		// (set) Token: 0x0600D0EF RID: 53487 RVA: 0x002330BF File Offset: 0x002312BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600D0F0 RID: 53488 RVA: 0x002330C8 File Offset: 0x002312C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartStarFightLevelScRsp);
		}

		// Token: 0x0600D0F1 RID: 53489 RVA: 0x002330D8 File Offset: 0x002312D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartStarFightLevelScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.BattleInfo, other.BattleInfo) && this.FightStageId == other.FightStageId && this.GroupId == other.GroupId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D0F2 RID: 53490 RVA: 0x00233148 File Offset: 0x00231348
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.FightStageId != 0U)
			{
				num ^= this.FightStageId.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D0F3 RID: 53491 RVA: 0x002331CF File Offset: 0x002313CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D0F4 RID: 53492 RVA: 0x002331D7 File Offset: 0x002313D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D0F5 RID: 53493 RVA: 0x002331E0 File Offset: 0x002313E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FightStageId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.FightStageId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.GroupId);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D0F6 RID: 53494 RVA: 0x00233270 File Offset: 0x00231470
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.FightStageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FightStageId);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D0F7 RID: 53495 RVA: 0x002332F8 File Offset: 0x002314F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartStarFightLevelScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.FightStageId != 0U)
			{
				this.FightStageId = other.FightStageId;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D0F8 RID: 53496 RVA: 0x00233388 File Offset: 0x00231588
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D0F9 RID: 53497 RVA: 0x00233394 File Offset: 0x00231594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 8U)
					{
						this.FightStageId = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.GroupId = input.ReadUInt32();
						continue;
					}
					if (num == 90U)
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040053C4 RID: 21444
		private static readonly MessageParser<StartStarFightLevelScRsp> _parser = new MessageParser<StartStarFightLevelScRsp>(() => new StartStarFightLevelScRsp());

		// Token: 0x040053C5 RID: 21445
		private UnknownFieldSet _unknownFields;

		// Token: 0x040053C6 RID: 21446
		public const int BattleInfoFieldNumber = 11;

		// Token: 0x040053C7 RID: 21447
		private SceneBattleInfo battleInfo_;

		// Token: 0x040053C8 RID: 21448
		public const int FightStageIdFieldNumber = 1;

		// Token: 0x040053C9 RID: 21449
		private uint fightStageId_;

		// Token: 0x040053CA RID: 21450
		public const int GroupIdFieldNumber = 10;

		// Token: 0x040053CB RID: 21451
		private uint groupId_;

		// Token: 0x040053CC RID: 21452
		public const int RetcodeFieldNumber = 9;

		// Token: 0x040053CD RID: 21453
		private uint retcode_;
	}
}
